package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 预约对象 appointment
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约ID */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 物业类型 */
    @Excel(name = "物业类型")
    private Integer propertyType;

    /** 物业ID */
    @Excel(name = "物业ID")
    private Integer propertyId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    /** 分配经纪人ID */
    @Excel(name = "分配经纪人ID")
    private Integer agentId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setPropertyType(Integer propertyType) 
    {
        this.propertyType = propertyType;
    }

    public Integer getPropertyType() 
    {
        return propertyType;
    }

    public void setPropertyId(Integer propertyId) 
    {
        this.propertyId = propertyId;
    }

    public Integer getPropertyId() 
    {
        return propertyId;
    }

    public void setAppointmentTime(Date appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime() 
    {
        return appointmentTime;
    }

    public void setAgentId(Integer agentId) 
    {
        this.agentId = agentId;
    }

    public Integer getAgentId() 
    {
        return agentId;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("propertyType", getPropertyType())
            .append("propertyId", getPropertyId())
            .append("appointmentTime", getAppointmentTime())
            .append("agentId", getAgentId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
